<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/jsp/comm_css_include.jsp"%>
<link href="${basePath }/css/timeline.css?v=2342" rel="stylesheet">
<link href="${basePath}/css/plugins/jqgriddemo/css/ui.jqgrid-bootstrap.min.css" rel="stylesheet" />
<!doctype html>
<html>
<head>
<style type="text/css">
#tab,#tabb,#tabc{
	border-bottom: none!important;
}

.table-border .ui-jqgrid {
	border: none;
}

.ibox-content {
	border: none;
}

.tabs-container-list {
	border-bottom: 1px solid #e7eaec;
}
 
.tab-bg {
	border-bottom: none !important;
}
</style>
</head>
<body class="gray-bg">
	<div class="container creditbody">
		<input type="hidden" id="lshId" /> <input type="hidden" id="dkInfoId" />
		<input type="hidden" id="fyInfoId" />
		<div class="iboxtitle">
			<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;贷后业务>逾期风控>逾期客户列表</span>
			<a href="javascript:void(0)"></a>
		</div>
		<%@include file="/jsp/dhCollection_include.jsp"%>
		<div class="tab-bg">
			<div class="tab-width">
				<div class="row m-b-lg">
					<div class="col-sm-12">
						<div class="tabs-container-list">
							<div class="tabs-left">
								<ul class="nav nav-tabs">
									<li class="active"><a data-toggle="tab" href="#tab-8">资金记录</a></li>
									<li class=""><a data-toggle="tab" href="#tab-9">催收记录</a></li>
									<li class=""><a data-toggle="tab" href="#tab-10">执行记录</a></li>
								</ul>
								<div class="tab-content">
									<div id="tab-8" class="tab-pane active">
										<div class="panel-body">
											<div id="outer">
												<ul id="tab">
													<li class="current">扣款明细表</li>
													<li onclick="dianKuan();">垫款记录</li>
													<li onclick="baoZhengJin();">加收保证金</li>
												</ul>

												<div id="content">
													<ul class="ul-style" style="display: block;">
														<%@include file="/jsp/dhCollection_koukuan_include.jsp"%>
													</ul>

													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_diankuan_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_baozhengjin_include.jsp"%>
													</ul>
												</div>
											</div>

										</div>
									</div>
									<div id="tab-9" class="tab-pane">
										<div class="panel-body">
											<div id="outerb">
												<ul id="tabb">
													<li class="currentb">电催记录</li>
													<li onclick="shangMen();">上门催收记录</li>
													<li onclick="lvShiHan();">律师函记录</li>
													<li onclick="faYuan();">法院诉讼记录</li>
													<li onclick="tuoChe();">拖车申请</li>
												</ul>

												<div id="contentb">
													<ul class="ul-style" style="display: block;">
														<%@include file="/jsp/dhCollection_dianchui_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_shangmen_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_lvshihan_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/web/system/loanAfter/fayunJL.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_tuoche_include.jsp"%>
													</ul>
												</div>
											</div>
										</div>
									</div>

									<div id="tab-10" class="tab-pane">
										<div class="panel-body">
											<div id="outerc">
												<ul id="tabc">
													<li class="currentc">GPS记录</li>
													<li onclick="tuoChejiLv();">拖车记录</li>
													<li onclick="huanChe();">还车记录</li>
													<li onclick="gongAn();">公安刑事记录</li>
												</ul>

												<div id="contentc">
													<ul class="ul-style" style="display: block;">
														<%@include file="/jsp/dhCollection_gps_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_tuochejilv_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_huanchejilv_include.jsp"%>
													</ul>
													<ul class="ul-style">
														<%@include file="/jsp/dhCollection_gonganjilv_include.jsp"%>
													</ul>

												</div>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 弹窗 -->
	<%@include file="/jsp/dhCollection_layer_include.jsp"%>
	<!-- public quote -->
	<%@include file="/jsp/comm_js_include.jsp"%>
	<script type="text/javascript" src="${basePath}/js/loanAfter/TabChange.js?v=${empty cssVersion ? Math.random() : cssVersion }" charset="utf-8"></script>
	<!-- jqGrid -->
	<script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/jquery.jqGrid.min.js"></script>
	<script type="text/javascript" charset="utf-8" src="${basePath}/js/plugins/jqgriddemo/js/grid.locale-cn.min.js"></script>
	<script type="text/javascript" src="${basePath}/js/plugins/layer/laydate/laydate.js"></script>
	
	<script type="text/javascript">
	    var winWidth = $(window).width();
	 	$(function(){
	 		$(".current-state-bno, .current-state").remove();
	 		getshujuData();//数据字典
	 		koukuanGetData(); //扣款
			getGpsInfoByBusiId(); //GPS记录
	 		getCarInfo(); //表头
	 		getCollectionRecord(); //电催
	 		
	 		$("input,textarea").each(function(){
 			  $(this).attr("readonly","readonly");
 			  $(this).removeAttr("onclick","laydate()");
 			});
	 		
	 		$("select.select-control").each(function(){
 			  $(this).attr("disabled","disabled");
 			});
	 		
		 });
	 	
	 	
	 	function dianKuan(){
	 		getdkszData();
	 		getpkszData();
	 		getzcszData();
	 		getDcData();
	 		getDkDataById();
	 	}
	 	
        function baoZhengJin(){
        	getBzjDataById();
        }
        
        function shangMen(){
        	getCollectionHome();
        }
        
        function lvShiHan(){
        	getLshDataInfo();
        }
        
        function faYuan(){
        	getFyDataById();
        }
        
 		function tuoChe(){
 			getTcsqDataById();
        }
        
 		function tuoChejiLv(){
 			gettcsbData();
 			showtccgData();
 		}
 		
 		function huanChe(){
 			getHcDataById();
 		}
 		
 		function gongAn(){
 			getGaDataById();
 		}
	 	
 		var formateStringDate=function(sDate1){
			if(!sDate1 || sDate1 == ''){
	    		return '-';
	    	}
			if(sDate1.indexOf(".") !=-1){
				return sDate1.substring(0,sDate1.indexOf("."));
			}else{
				if(sDate1.indexOf(" ")!=-1){
			    	return sDate1.substring(0,sDate1.indexOf(" "));
				}else{
					return sDate1;
				}
			}
		}
 		
	 	function getshujuData(){
			//获取数据字典
	    	$.dpAjax({
	    		show:false,
		    	url:'${basePath}/DataDictionaryController/getEnableList',
	 			data:{},
	 			success: function(datas){
	 				  var result = datas.result.rows;
	 				  var CusTrustStatus='<option value="">请选择</option>';
	 				  var CollectionHomeResult='<option value="">请选择</option>';
	 				  var AdvanceExecutor='<option value="">请选择</option>';
	 				  var LawsuitExecutor='<option value="">请选择</option>';
	 				  var TrailerExecutor='<option value="">请选择</option>';
	 				  var AdvanceAccountNature='<option value="">请选择</option>';
	 				  var IndemnityType='<option value="">请选择</option>';
	 				  var ExpressCompany='<option value="">请选择</option>';
	 				  var OverdueReason = '';
				      for(var i=0;i<result.length;i++){
				    	  if(result[i].parentValue == "CusTrustStatus"){
				    		  CusTrustStatus +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "CollectionHomeResult"){
				    		  CollectionHomeResult +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "AdvanceExecutor"){
				    		  AdvanceExecutor +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "LawsuitExecutor"){
				    		  LawsuitExecutor +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "TrailerExecutor"){
				    		  TrailerExecutor +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "AdvanceAccountNature"){
				    		  AdvanceAccountNature +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "IndemnityType"){
				    		  IndemnityType +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "ExpressCompany"){
				    		  ExpressCompany +='<option value="'+result[i].value+'">'+result[i].name+'</option>'
				    	  }
				    	  if(result[i].parentValue == "Overdue_Reason"){
				    		  OverdueReason +='<li class="layerUL-li" value="'+result[i].value+'">'+result[i].name+'</li>'
				    	  }
				      } 
				      $("#statusTrustCus").html(CusTrustStatus);
				      $("#resultCollection1").html(CollectionHomeResult);
				      $("#advanceExecutor").html(AdvanceExecutor);
				      $("#executorLawsuit").html(LawsuitExecutor);
				      $("#TrailerExecutor").html(TrailerExecutor);
				      $("#executor").html(TrailerExecutor);
				      $("#advanceAccountNature").html(AdvanceAccountNature);
				      $("#pptypeIndemnity").html(IndemnityType);
	 				  $("#typeIndemnity").html(IndemnityType);
	 				  $("#companyExpress").html(ExpressCompany);
	 				  $("#layerUL").html(OverdueReason);
	 				  $("#layerUL li").on('dblclick',function(){ 
	 					 var choicetext = $(this).text();
	 					 var choiceVal= $(this).val()<10?"0"+$(this).val():$(this).val();
	 					 $("#dueResonVal").val(choiceVal);
	 					 $("#dueReson").val(choicetext);
	 					 layer.close(dueResonlayer);
	 				  });
					  return;
	             }
		    });
		}
	 	
</script>
</body>
</html>
